const express = require("express");
const fs 	  = require("fs");

const app = express();

app.use(express.static("www"));


app.get("/AllData",function(req,res){
	fs.readFile("./database/site.json",function(err,data){
		let dataObj = JSON.parse(data.toString());
		res.json({"mapList" : dataObj.mapList[0]});
	});

});

app.listen(3000, () => {
	console.log('3000');
})

